//
//  Gateway.m
//  Truffle
//
//  Created by m2sar on 09/03/10.
//  Copyright 2010 isrtream1-svn . All rights reserved.
//

#import "Gateway.h"


@implementation Gateway 


@synthesize ip, name, ref;

- (id)initGateway :(NSString *)ip1 : (NSString *)name1{
	
	if(self != nil)
	{
		self.ip = ip1;
		self.name = name1;
		self.ref = 0;
	}
	return self;
}

- (id)initGatewayRef :(NSString *)ip1 : (NSString *)name1: (NSInteger) ref1{
	
	if(self != nil)
	{
		self.ip = ip1;
		self.name = name1;
		self.ref = ref1;
	}
	return self;
}


-(NSString *) description
{
	return [NSString stringWithFormat:@"Passerelle : ip = %@, name = %@, ref = %d", self.ip, self.name, self.ref];
}


@end
